package com.example.ibsp_demo.mapper.message;

import com.example.ibsp_demo.pojo.entity.message.FollowNotification;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface FollowNotificationMapper {

    // 插入关注提醒
    int insert(FollowNotification notification);

    // 查询用户收到的关注提醒
    List<FollowNotification> selectByUserId(int userId);

    FollowNotification selectByUserPair(int followerId, int followedId);

    int update(FollowNotification notification);

    // 标记关注提醒为已读
    int markAsRead(int notificationId);

    //查询粉丝
    List<FollowNotification> selectFans(int userId);
}
